<?php
	
	include 'connection.php';


	$q=$_GET['q'];
	$my_data=mysql_real_escape_string($q);

	$sql="select name from contract_company where name like '".$my_data."%'";
	$result = mysql_query($sql);
	
	if($result)
	{
		while($row=mysql_fetch_array($result))
		{
			echo $row['name']."\n";
		}
	}
	mysql_close($connection);
?>